package com.bsj.power.pls.web;

import cn.dev33.satoken.annotation.SaIgnore;
import com.bsj.power.common.config.global.JsonResult;
import com.bsj.power.common.def.dto.bindCardMachine.BindCardMachineSearchDTO;
import com.bsj.power.common.netty.ACDeviceStatusData;
import com.bsj.power.pls.service.BindCardMachineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author LiJiaXin
 * @version 1.0.0
 * @description BindCardMachineController
 * @time 2024/9/23 17:08
 */
@RestController
@RequestMapping("/bindCardMachine")
public class BindCardMachineController {

    @Autowired
    private BindCardMachineService bindCardMachineService;

    /**
     * 分页展示绑卡机信息
     *
     * @param bindCardMachineSearchDTO
     * @return com.bsj.power.common.config.global.JsonResult<java.util.List<com.bsj.power.common.netty.ACDeviceStatusData>>
     * @author ljx
     * @time 2024/9/23 19:22
     */
    @SaIgnore
    @GetMapping("/page")
    public JsonResult<List<ACDeviceStatusData>> page(BindCardMachineSearchDTO bindCardMachineSearchDTO) {
        return bindCardMachineService.page(bindCardMachineSearchDTO);
    }

}
